package cn.bon.schedule;

import cn.bon.schedule.api.pojo.po.WorkOrderDetail;
import cn.bon.schedule.service.WorkOrderDetailService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author Lc_cL
 * @Date 2023/12/15
 * @Description
 */
@SpringBootTest(classes = ScheduleApplication.class)
public class testRemove {
    @Resource
    WorkOrderDetailService detailService;

    @Test
    public void testRemove() {
        LambdaQueryWrapper<WorkOrderDetail> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WorkOrderDetail::getWorkOrderId, 1735546504057028609l);
        detailService.remove(queryWrapper);
    }


    @Value("${mybatis-plus.global-config.db-config.logic-delete-value}")
    Integer s;

    @Test
    public void testValue() {
        System.out.println(s);
    }

}
